package com.jackchong.net

import com.jackchong.net.JBaseData

/**
 * author : chong.huang
* create : 2/14/21
 * desc   :
 */
interface Retry {

    companion object {
        fun default(): Retry = AutoRetry()
    }

    fun renet()

    fun <T, J: JBaseData<T>> catchThrowableAdd(t: Throwable, param: JNetParam<T, J>)

    fun <T, J: JBaseData<T>> add(param: JNetParam<T, J>)
}